/**
 * Copyright © 2015 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package com.eqxiu.ieditor.manager.utils;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * @description //TODO 设计说明
 * @author ranger
 * @date Jun 8, 2017
 */
public class RequestUtils {
	public static Map<String, String> getRequestParamMap(HttpServletRequest request) {
		HashMap<String, String> param = new HashMap<String, String>();
		Enumeration<String> e = request.getParameterNames();
		while (e.hasMoreElements()) {
			String key = e.nextElement();
			String value = request.getParameter(key);
			if (value.trim().length() > 0) {
				param.put(key, value);
			}
		}
		return param;
	}
}
